import { BaseController } from "sap/ui/demo/nav/controller/BaseController";

/**
 * @namespace sap.ui.demo.nav.controller
 */
export default class Home extends BaseController {
  onDisplayNotFound() {
    this.router.getTargets()?.display("notFound", {
      fromTarget: "home",
    });
  }

  onNavToEmployees() {
    this.router.navTo("employeeList");
  }

  onNavToEmployeeOverview() {
    this.router.navTo("employeeOverview");
  }
}
